'use strict';

/**
 * 解析数据
 * @param {object} [response] 响应对象
 * @return {object} 
 */
export default function parseResponse(response){
	if (!response) {
      new Error('response is empty.');
    }
    const { RetCode,RetData } = response;

    switch(RetCode){
    	case '200':
    		return RetData;
    	case '201':
    		return RetData;
    	case '600':
    		return RetData;
    }

}